package com.ruoyi.pm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 接口监控日志对象 exc_log
 * 
 * @author ruoyi
 * @date 2022-08-17
 */
public class ExcLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 接口id */
    @Excel(name = "接口id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long portId;

    /** 接口名称 */
    @Excel(name = "接口名称")
    private String portName;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long supplierId;

    private String supplierName;

    /** 请求时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "请求时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date toTime;


    /** 保司返回的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "保司返回的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date outTime;

    /** 前端请求报文 */
    @Excel(name = "前端请求报文")
    private String toData;

    /** 保司返回的报文 */
    @Excel(name = "保司返回的报文")
    private String outData;

    /** 报错信息 */
    @Excel(name = "报错信息")
    private String exceptionData;

    private String errorFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public Long getPortId() {
        return portId;
    }

    public void setPortId(Long portId) {
        this.portId = portId;
    }

    public String getPortName() {
        return portName;
    }

    public void setPortName(String portName) {
        this.portName = portName;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public Date getToTime() {
        return toTime;
    }

    public void setToTime(Date toTime) {
        this.toTime = toTime;
    }

    public Date getOutTime() {
        return outTime;
    }

    public void setOutTime(Date outTime) {
        this.outTime = outTime;
    }

    public String getToData() {
        return toData;
    }

    public void setToData(String toData) {
        this.toData = toData;
    }

    public String getOutData() {
        return outData;
    }

    public void setOutData(String outData) {
        this.outData = outData;
    }

    public String getExceptionData() {
        return exceptionData;
    }

    public void setExceptionData(String exceptionData) {
        this.exceptionData = exceptionData;
    }

    public String getErrorFlag() {
        return errorFlag;
    }

    public void setErrorFlag(String errorFlag) {
        this.errorFlag = errorFlag;
    }
}
